package com.pkche.core.advanced.util;

import java.util.HashMap;
import java.util.Map;

/**
 * 常量类
 * @author zhongpengzhan
 *
 */
public class Constants {
	//字符编码
	public final static String DEFUALT_ENCODING = "UTF-8";
	
	//返回成功的状态码
	public final static String RETURN_SUCCESS_CODE = "000000";
	//返回失败的状态码
	public final static String RETURN_FAIL_CODE = "999999";
	
	//返回帐号不存在的状态码
	public final static String RETURN_NOTEXIST_CODE = "000330";
	
	//返回未登陆的状态码
	public final static String RETURN_UNLOGIN_CODE = "000110";
	
	//返回空记录
	public final static String RETURN_NULL_CODE = "000220";
	
	//会员收支类型
	public final static int MEMBER_APPLY_TYPE_INCOME = 0;   //会员收益
	public final static int MEMBER_APPLY_TYPE_PAY = 1;   //会员支出
	
	//支出申请类型码
	public final static int PAY_APPLY_TYPE_CASH = 0;  //会员提现
	public final static int PAY_APPLY_TYPE_REWARD = 1;   //平台奖励
	public final static int PAY_APPLY_TYPE_OTHER = 2;  //其他运营支出
	
	//支出申请处理状态码
	public final static int PAY_APPLY_STATUS_INITIAL = 0;  //初始状态，未处理
	public final static int PAY_APPLY_STATUS_AUDITED = 1;  //已审核
	public final static int PAY_APPLY_STATUS_PAID = 2;  //已支付
	public final static int PAY_APPLY_STATUS_NOTPASS = 3;  //审核未通过
	public final static int PAY_APPLY_STATUS_PAYFAIL = 4;  //支付失败
	
	//是否为日结用户
	public final static int USER_STATEMENT_DAY_TRUE = 1;   //是日结用户
	
	//提现锁定
	public final static int USER_APPLY_LOCK_TRUE = 1;   //有提现申请已锁定
	public final static int USER_APPLY_LOCK_FALSE = 0;   //未锁定
	
	//分享方式
	public static final Map<String, String> SHARE_MAP = new HashMap<String, String>();
	
	static{
		SHARE_MAP.put("timeline", "微信朋友圈");
		SHARE_MAP.put("weat_friend", "微信朋友");
		SHARE_MAP.put("qq", "腾讯QQ");
		SHARE_MAP.put("qq_weibo", "腾讯微博");
	}
	
	//收益类型
	public static final Map<Integer, String> INCOME_TYPE_MAP = new HashMap<Integer, String>();
	
	static{
		INCOME_TYPE_MAP.put(1, "当日业绩");
		INCOME_TYPE_MAP.put(2, "推荐奖励");
		INCOME_TYPE_MAP.put(3, "积分墙下载");
		INCOME_TYPE_MAP.put(4, "管理补贴");
		INCOME_TYPE_MAP.put(5, "业绩补偿");
		INCOME_TYPE_MAP.put(6, "其他");
	}
}
